package com.working.libview.widget.banner.holder

import android.content.Context
import android.view.View

/**
 * author by wangyu
 * Use For
 * created on 2019/1/12.
 */
interface MZViewHolder<T> {
    /**
     * 创建View
     *
     * @param context
     * @return
     */
    fun createView(context: Context?): View?

    /**
     * 绑定数据
     *
     * @param context
     * @param position
     * @param data
     */
    fun onBind(context: Context?, position: Int, data: T)
}